// as const数组项约束
let salay = [5000, 7500, 8000, 9000] as const
// salay[0] = 6500  // 编译错误

// 可变元组与元组解构
let [name, age, address, ...rest]: [string, number, string, ...any[]] = ['张三', 18, '广东省', '踢足球', '打游戏', '睡觉']
console.log('rest', rest)
export {}

// tag可变元组标签
let arr: [name_: string, age_: number, address_: string, ...rest: any[]] = ['李四', 18, '广东省', '踢足球', '打游戏', '睡觉']
